﻿@model XZen.Blogger.Chapter

@{
    ViewBag.Title = "Edit";
  
}

<br />
<div class="row">
   
    <div class="col-sm-6">

        <div class="panel panel-default">
            <div class="panel-heading">
                <h6 class="panel-title"><i class="icon-book"></i>Isssue on Books</h6>
                <span class="label pull-right">
                    @Html.ActionLink("Back To Issue", "EditIssue", new { id = Model.IssueID }, null)
                </span>
            </div>
            <div class="panel-body">
 @Html.Partial("_Feedback")
                @using (Html.BeginForm("EditChapter", "Magazine", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
                {
                    @Html.AntiForgeryToken()
                    @Html.ValidationSummary(true)
  

                    <div class="form" role="form">
                        @Html.HiddenFor(model => model.ID)
                        @Html.HiddenFor(model => model.CoverPageUrl)

                        <div class="form-group">
                            <label class="col-sm-2 control-label">Name: </label>
                            <div class="col-sm-10">
                                @Html.TextBoxFor(model => model.Name, new { @class = "form-control" })

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Title: </label>
                            <div class="col-sm-10">
                                @Html.TextBoxFor(model => model.Title, new { @class = "form-control" })
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">Category: </label>
                            <div class="col-sm-10">
                                @Html.TextBoxFor(model => model.Category, new { @class = "form-control" })
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">Issue ID: </label>
                            <div class="col-sm-10">
                                @Html.TextBoxFor(model => model.IssueID, new { @class = "form-control", disabled = "disabled" })
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Description: </label>
                            <div class="col-sm-10">
                                @Html.TextAreaFor(model => model.Body, new { @class = "form-control", rows = "5", cols = "5", placeholder = "Default textarea" })
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">User: </label>
                            <div class="col-sm-10">
                                @Html.TextBoxFor(model => model.User, new { @class = "form-control" })
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">Tags:</label>
                            <div class="col-sm-10">
                                <input type="text" id="tags2" class="tags" value="these,are,sample,tags" />
                            </div>
                        </div>
                        <div class="form-actions text-right">
                            <button type="submit" class="btn btn-primary">Submit</button>
                        </div>
                    </div>
                }
            </div>

        </div>
    </div>
    <div class="col-sm-6">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h6 class="panel-title"><i class="icon-book"></i>Some More Context</h6>
                <span class="label  pull-right">
                    @Html.ActionLink("Create New Chapter", "CreateChapter", "Magazine", new { id = Model.ID }, null)
                </span>
            </div>
            <div class="panel-body">
                Nothing there...Probably, images available for this
            </div>
        </div>
    </div>
</div>
